#include <boost/algorithm/string.hpp>
#include <locale>
#include <iostream>

int main()
{
	std::string s = "David Hilbert";
	std::cout << std::boolalpha << boost::algorithm::starts_with(s,"David") << std::endl;
	std::cout << std::boolalpha << boost::algorithm::ends_with(s,"Hilbert") << std::endl;
	std::cout << std::boolalpha << boost::algorithm::contains(s,"avid") << std::endl;
	std::cout << std::boolalpha << boost::algorithm::lexicographical_compare(s,"Leonard Euler") << std::endl;
}